{extend name="base" /}
{block name="body"}

<div class="am-padding am-padding-bottom-0">
	<strong class="am-text-primary am-text-lg">会员组</strong> / <small>Member Group</small>
</div>

<div class="am-padding am-btn-toolbar">
	<div class="am-btn-group am-btn-group-xs">
		<a href="{:url('admin/member_group/index')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 列表</a>
		<a href="{:url('admin/member_group/add')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</a>
	</div>
</div>

<div class="am-padding am-scrollable-horizontal">
	<table class="am-table am-table-bd am-table-striped am-text-nowrap admin-content-table">
		<thead>
			<tr>
				<th width="40">ID</th>
				<th width="60">图标</th>	
				<th>名称</th>
				<th width="80">状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			{foreach name="member_group_list" item="vo"}
			<tr>
				<td class="am-text-middle">{$vo.id}</td>
				<td class="am-text-middle"><img src="{$vo.icon}" class="member-icon"></td>
				<td class="am-text-middle">{$vo.title}</td>
				<td class="am-text-middle">{php}echo $vo['status']==1 ? '启用' : '禁用';{/php}</td>
				<td class="am-text-middle">
					<div class="am-btn-toolbar">
						<div class="am-btn-group am-btn-group-xs">
							<a href="{:url('admin/member_group/edit',['id'=>$vo['id']])}" class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 编辑</a>
							<a href="{:url('admin/member_group/delete',['id'=>$vo['id']])}" class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only ajax-delete"><span class="am-icon-trash-o"></span> 删除</a>
						</div>
					</div>
				</td>
				
			</tr>
			{/foreach}

		</tbody>
	</table>
</div>

{/block}